package regpang.myapplication22.viewPager;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.TextView;

import regpang.myapplication22.R;


/**
 * Created by Administrator on 2015/11/10 0010.
 */
public class EnterActivity extends Activity {
    private TextView depthpageText,rotateText,zoomOutText;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        setContentView(R.layout.enter);

        depthpageText = (TextView)findViewById(R.id.depthpage_id);
        rotateText = (TextView)findViewById(R.id.rotate_id);
        zoomOutText = (TextView)findViewById(R.id.zoomout_id);
        depthpageText.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(EnterActivity.this,ViewPagerAniMainActivity.class);
                intent.putExtra("flag",0);
                EnterActivity.this.startActivity(intent);
            }
        });
        rotateText.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(EnterActivity.this,ViewPagerAniMainActivity.class);
                intent.putExtra("flag",1);
                EnterActivity.this.startActivity(intent);
            }
        });
        zoomOutText.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(EnterActivity.this,ViewPagerAniMainActivity.class);
                intent.putExtra("flag",2);
                EnterActivity.this.startActivity(intent);

            }
        });

    }
}
